﻿using Quartz;
using System;

namespace QuartzNetDemo.s2
{
    /// <summary>
    /// Aop类
    /// </summary>
    public class MyAopListener : IJobListener
    {
        public string Name
        {
            get
            {
                return "hello world";
            }
        }
        public void JobExecutionVetoed(IJobExecutionContext context)
        {

        }
        public void JobToBeExecuted(IJobExecutionContext context)
        {
            Console.WriteLine("执行前写入日志");
        }
        public void JobWasExecuted(IJobExecutionContext context, JobExecutionException jobException)
        {
            Console.WriteLine("执行后写入日志");
        }
    }
}